﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Impresion.aspx.cs" Inherits="HerGoS.WebUI.Viaticos.Liquidaciones.Impresion" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Styles/HerGoS-theme/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
<style type="text/css">
        body
        {
            background-color: #FFFFFF;
            font-size: 10.0pt;
        }
        .border
        {
            border: 1px #000000 solid;
        }
        .moneda
        {
            text-align:right;
        }
    .style3
    {
        width: 105px;
    }
    .firmaBorde
    {
        height: 15.95pt;
        width: 136pt;
        color: windowtext;
        font-size: 10.0pt;
        font-weight: 400;
        font-style: normal;
        text-decoration: none;
        text-align: general;
        vertical-align: bottom;
        white-space: nowrap;
        border-left-style: none;
        border-left-color: inherit;
        border-left-width: medium;
        border-right-style: none;
        border-right-color: inherit;
        border-right-width: medium;
        border-top-style: none;
        border-top-color: inherit;
        border-top-width: medium;
        border-bottom: 1.0pt solid windowtext;
        padding-left: 1px;
        padding-right: 1px;
        padding-top: 1px;
    }    
    </style>
<style type="text/css" media="print">
        .ocultar {display:none;}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="float:right" class="ocultar">
        <wce:ButtonExt ID="btnImprimir" runat="server" Text="Imprimir" OnClientClick="window.print(); return false;"/>
    </div>
     <table style="width: 100%; height: 301px; " border="0" cellspacing="1">
        <tr >
            <td align="center"  colspan="3" class="border">               
              <b> LIQUIDACIÓN DE PASAJES Y VIATICOS</b>
            </td>
            <td align="center" class="border" style="width:150px">
               <b>  ANEXO &quot;B&quot;</b></td>
        </tr>         
        <tr >
            <td align="center" class="border" style="width:40%" >PROGRAMA SUMAR</td>
            <td>&nbsp;</td>
            <td  class="border" align="center" style="width:150px">FECHA</td>
            <td class="border" align="center">
                <asp:Label ID="lblfechaLiquidacion" runat="server" Text="00/00/00"></asp:Label>
            </td>
           
        </tr>
        <tr>
            <td align="center" class="border">PDSPPS</td>
             <td>&nbsp;</td>
            <td  class="border" align="center">
                LIQ. Nº:</td>
            <td  class="border" align="center">
                <asp:Label ID="lblNumeroLiquidacion" runat="server" Text="lblNumeroLiquidacion"></asp:Label>
            </td>
        </tr>
        <tr >
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="border">
                APELLIDO/NOMBRE PASAJERO</td>
            <td colspan="3"  align="center" class="border">
                <asp:Label ID="lblApellidoyNombrePasajero" runat="server" Text="lblApellidoyNombrePasajero"></asp:Label>
            </td>
        </tr>
        <tr >
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td >
            <div style="width:120px; text-align:center" class="border">SECCIÓN I</div>                
            </td>
            <td>&nbsp;</td>
            <td >&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" >
                <asp:GridView ID="GridReporteGastos" runat="server" Width="100%" 
                    AutoGenerateColumns="False" >
               <Columns>
                   <asp:BoundField DataField="Fecha" HeaderText="Fecha Gasto" ItemStyle-HorizontalAlign="Center">
                   </asp:BoundField>
                 <asp:BoundField DataField="Concepto" HeaderText="Tipo Concepto" ItemStyle-HorizontalAlign ="Center" >
                   </asp:BoundField>
                 <asp:BoundField DataField="CantidadKm" HeaderText="Cant.Km" ItemStyle-HorizontalAlign ="Center" >
                   </asp:BoundField>
                 <asp:BoundField DataField="Valor" HeaderText="Valor" ItemStyle-HorizontalAlign ="Center">
                   </asp:BoundField>
                 <asp:TemplateField HeaderText=" (*)"  ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                    <%#  GetCantidadTerminales()%>
                   </ItemTemplate>
                 </asp:TemplateField>
                 <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Monto($)" ItemStyle-Width="150px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("Monto")%> 
                 </ItemTemplate>
                 </asp:TemplateField>
             </Columns>                
                </asp:GridView>


            </td>
        </tr>
        <tr>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
            <td  class="border">
               TOTAL
            </td>
            <td class="border moneda">
             $ <asp:Label ID="lblTotalSeccionI" runat="server" Text="lblTotalSeccionI" ></asp:Label>
            </td>
        </tr>        
        <tr>
            <td>
            <div style="width:120px; text-align:center" class="border">SECCIÓN II</div>                
            </td>
           <td>&nbsp;</td>           
           <td >&nbsp;</td>
           <td >&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" >
                <asp:GridView ID="GridReporteTramos" runat="server" Width="100%" 
                    AutoGenerateColumns ="False" >
                <Columns>
                    <asp:BoundField DataField="Partida" HeaderText="Partida/Llegada" ItemStyle-HorizontalAlign ="Center">              
                    </asp:BoundField>
                    <asp:BoundField DataField="Ciudad" HeaderText="Ciudad" ItemStyle-HorizontalAlign ="Center" >
                    </asp:BoundField>
                    <asp:BoundField DataField="ModoViaje" HeaderText="Modo de Viaje" ItemStyle-HorizontalAlign ="Center" >
                    </asp:BoundField>
                    <asp:BoundField DataField="Fecha" HeaderText="Fecha"  ItemStyle-HorizontalAlign ="Center" DataFormatString="{0: dd/MM/yyyy HH:mm:ss}">
                    </asp:BoundField>
                    <asp:BoundField DataField="Hora" HeaderText="Hora" ItemStyle-HorizontalAlign ="Center">
                    </asp:BoundField>
                    <asp:BoundField DataField="CantidadDias" HeaderText="Cantidad Dias" ItemStyle-HorizontalAlign ="Center" >
                    </asp:BoundField>
                <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Monto Diario($)" ItemStyle-Width="150px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                  <%# Eval("MontoDiario")%> 
                 </ItemTemplate>
                 </asp:TemplateField>
                 
                 <%-- <asp:BoundField DataField="PorcentajeViatico" HeaderText="% Viatico"  ItemStyle-Width="80px"  ItemStyle-HorizontalAlign ="Center" >
                    <ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundField>--%>


                      <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Monto($)" ItemStyle-Width="150px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("Monto")%> 
                 </ItemTemplate>
                 </asp:TemplateField>

     
               </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td >&nbsp;</td>
            <td >
                &nbsp;</td>          
            <td  class="border style11">
                TOTAL:</td>
            <td class="border moneda style11">
                $  <asp:Label ID="lblTotalSeccionII" runat="server" Text="lblTotalSeccionII"></asp:Label>
            </td>
        </tr>
        <tr>
            <td >
            <div style="width:120px; text-align:center" class="border">SECCIÓN III</div>                
            </td>
            <td>&nbsp;</td>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="GridReporteAnticipo" runat="server" Width="100%" 
                    AutoGenerateColumns ="False" >
                <Columns>
                    <asp:BoundField DataField="FechaAnticipo" HeaderText="Fecha" ItemStyle-HorizontalAlign ="Center">              
                    </asp:BoundField>
                    <asp:BoundField DataField="NumeroCheque" HeaderText="N° Cheque" ItemStyle-HorizontalAlign ="Center">
                    </asp:BoundField>
                     <asp:BoundField DataField="AnticipoViaticos" HeaderText="AnticipoViaticos" ItemStyle-HorizontalAlign ="Center">
                    </asp:BoundField>              
                   <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Anticipo($)" ItemStyle-Width="150px" HeaderStyle-CssClass="border moneda">
                 <ItemTemplate>
                 $ <%# Eval("MontoAnticipo")%> 
                 </ItemTemplate>
                 </asp:TemplateField>                            
               </Columns>
                </asp:GridView>
                
            </td>
        </tr>
        <tr>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
            <td class="border" >
                TOTAL:</td>
            <td class="border moneda">
               $ <asp:Label ID="lblTotalSeccionIII" runat="server" Text="lblTotalSeccionIII"  ></asp:Label>
                </td>
        </tr>
        <tr>  
         <td align="left" valign="bottom" style="width:100px" >
                            Observación:
                            </td>
                        <td align="left" valign="bottom" class="style3" colspan="3">
                            &nbsp;<asp:Label ID="lblObservacion" runat="server" Text="" ></asp:Label>
                           
                        </td>
         </tr>
        <tr>            
            <td colspan="4" align="center">

                <table border="0" cellpadding="0" cellspacing="0" 
                    style="border-collapse: collapse; width: 100%; margin-top: 0px;">

                    <tr height="21">
                        <td style="width:15%">&nbsp;</td>
                        <td  height="21" >
                            <br />
                            <br />
                            <br />
                            <br />
                        </td>
                        <td style="width:15%">&nbsp;</td>
                        <td class="firmaBorde" height="21">
                            <br />
                            <br />
                            <br />
                            <br />
                        </td>
                        <td style="width:15%">&nbsp;</td>
                    </tr>
                    <tr height="21">
                    <td style="width:15%">&nbsp;</td>
                        <td  height="21" align="center">
                            &nbsp;</td>
                        <td style="width:15%">&nbsp;</td>
                        <td align="center">
                            Coordinación General</td>
                        <td style="width:15%">&nbsp;</td>
                    </tr>
                </table>
        </td></tr>
        <tr >
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td rowspan="4" >&nbsp;</td>
            <td rowspan="4">&nbsp;</td>
          
            <td class="border">
            Total Sección I
                </td>
            <td class="border moneda">
                $ <asp:Label ID="lblReporteTotalGastos" runat="server" Text="lblReporteTotalGastos" ></asp:Label>
            </td>
        </tr>        
        <tr >
            <td class="border">
                Total Sección II</td>
            <td class="border moneda">
                $  <asp:Label ID="lblReporteTotalMontoViatico" runat="server" Text="lblReporteTotalMontoViatico"></asp:Label>
            </td>
        </tr>
        <tr >
            <td class="border">
                Total Sección III (menos)</td>
            <td class="border moneda">
                $  <asp:Label ID="lblReporteTotalAnticipo" runat="server" Text="lblReporteTotalAnticipo"></asp:Label>
            </td>
        </tr>
        <tr >
            <td class="border">
                TOTAL GENERAL</td>
            <td class="border moneda">
                $  <asp:Label ID="lblReporteTotal" runat="server" Text="lblReporteTotal"></asp:Label>
            </td>
        </tr>
    </table>


    </form>
</body>
</html>
